﻿using System;
using System.IO;
using Microsoft.Practices.Unity;
using NUnit.Framework;

namespace WebCrawler.Tests.Integration
{
    public class FileManagerTests : IntegrationTestFixture
    {
        private IFileManager _fileManager;

        [SetUp]
        public new void Setup()
        {
        }

        [Test]
        public void ShouldCreateFile()
        {
            _fileManager = RootContainer.Resolve<IFileManager>();
            string relativePath = @"logs\test.txt";
            _fileManager.CreateFile(relativePath, "text");
            Assert.IsTrue(FileExist(relativePath));
        }
    }
}